Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@emotion/stylis
Advanced tools
A custom build of Stylis
@emotion/stylis
is a version of Stylis that has been modified slightly to make it smaller. The only Stylis option that can be changed is prefix
, the rest of the options are already set to the values shown below and cannot be changed. This package also only exports the constructer, so you have to do new Stylis()
and use the result from that rather than directly calling Stylis
.
type Options = {
global: false,
preserve: false,
keyframe: false,
semicolon: true,
cascade: true,
compress: false,
prefix: boolean | ((key: string, value: string, context: number) => boolean)
}
import Stylis from '@emotion/stylis'
const stylis = new Stylis()
stylis('.css-hash', 'display:flex;') // .css-hash{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
To build this package from a newer version of stylis, update the version of stylis that is installed as a devDependency and run node build.js
in the directory of this package. This will read the source of stylis, transform it slightly, use the Google Closure Compiler REST API to minify it, format it with Prettier and then write it to src/stylis.min.js
.
Stylis was written by Sultan Tarimo. ❤️
FAQs
A custom build of Stylis
The npm package @emotion/stylis receives a total of 3,313,280 weekly downloads. As such, @emotion/stylis popularity was classified as popular.
We found that @emotion/stylis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.